﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="wfrmFactura.aspx.cs" Inherits="EvolSoftWeb.wfrmFactura" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">



    <div class="main-header" style="width: 100%">
        <div class="main-titulo">
            Registro Factura</div>
    </div>
    <div class="content-form">
    <fieldset>
    
    <table>
    
    
    <tr>
    <td>
        <dx:ASPxButton ID="btngrabar" runat="server" Text="Registrar" Width="100px" 
            onclick="btngrabar_Click">
        </dx:ASPxButton>
    </td>
    <td>
        <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Limpiar"  Width="100px">
        </dx:ASPxButton>
    </td>
    <td>
        <dx:ASPxButton ID="ASPxButton3" runat="server" Text="Salir" Width="100px" 
            onclick="ASPxButton3_Click">
        </dx:ASPxButton>
    </td>
    </tr></table>
    </fieldset>

    <fieldset>
    <legend>&nbsp;Factura
    </legend>

<table>
    <tr>
    <td>
    Id Factura:</td>
   <td>
   
       <dx:ASPxTextBox ID="txtidfactura" runat="server" Width="170px">
       </dx:ASPxTextBox>
   
   </td>
   <td>
   
        Id Reserva:</td>
   <td>
   
       <dx:ASPxTextBox ID="txtidreserva" runat="server" Width="170px">
       </dx:ASPxTextBox>
   
   </td>
   <td>
   
       <dx:ASPxButton ID="ASPxButton4" runat="server" Text="Buscar " Width="100px">
       </dx:ASPxButton>
   
   </td>
    </tr>
       <tr>
    <td>
        &nbsp;</td>
   <td>
       &nbsp;</td>
   <td>
       &nbsp;</td>
   <td>
       &nbsp;</td>
   <td>
       &nbsp;</td>
    </tr>
       <tr>
    <td>
        Fecha:</td>
   <td>
       <dx:ASPxDateEdit ID="dtefecha" runat="server">
       </dx:ASPxDateEdit>
           </td>
   <td>
        Numero:</td>
   <td>
       <dx:ASPxTextBox ID="txtnumero" runat="server" Width="170px">
       </dx:ASPxTextBox>
           </td>
   <td>
       &nbsp;</td>
    </tr>
       <tr>
    <td>
        &nbsp;</td>
   <td>
       &nbsp;</td>
   <td>
       &nbsp;</td>
   <td>
       &nbsp;</td>
   <td>
       &nbsp;</td>
    </tr>
       <tr>
    <td>
        Monto Bruto:</td>
   <td>
       <dx:ASPxTextBox ID="txtmontobruto" runat="server" Width="170px">
       </dx:ASPxTextBox>
           </td>
   <td>
        IGV:</td>
   <td>
       <dx:ASPxTextBox ID="txtigv" runat="server" Width="170px">
       </dx:ASPxTextBox>
           </td>
   <td>
       &nbsp;</td>
    </tr>
       <tr>
    <td>
        &nbsp;</td>
   <td>
       &nbsp;</td>
   <td>
       &nbsp;</td>
   <td>
       &nbsp;</td>
   <td>
       &nbsp;</td>
    </tr>
       <tr>
    <td>
        Monto Total:</td>
   <td>
       <dx:ASPxTextBox ID="txtmontototal" runat="server" Width="170px">
       </dx:ASPxTextBox>
           </td>
   <td>
        Estado:</td>
   <td>
       <dx:ASPxTextBox ID="txtestado" runat="server" Width="170px">
       </dx:ASPxTextBox>
           </td>
   <td>
       &nbsp;</td>
    </tr>
       <tr>
    <td>
        &nbsp;</td>
   <td>
       &nbsp;</td>
   <td>
       &nbsp;</td>
   <td>
       &nbsp;</td>
   <td>
       &nbsp;</td>
    </tr>
       <tr>
    <td>
        &nbsp;</td>
   <td>
       
           </td>
   <td>
       &nbsp;</td>
   <td>
       &nbsp;</td>
   <td>
       &nbsp;</td>
    </tr>
    </table>
    </fieldset>
    <fieldset>
    <legend>Detalle Factura</legend>

    <table>

    <tr>
    <td>
    
 
    <dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" 
            Width="101%">
           <Columns>
               <dx:GridViewDataTextColumn FieldName="iddetalleFactura" VisibleIndex="0">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
               </dx:GridViewDataTextColumn>
               <dx:GridViewDataTextColumn FieldName="iddetalleServicios" VisibleIndex="1">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
               </dx:GridViewDataTextColumn>
               <dx:GridViewDataTextColumn FieldName="idHospedaje" VisibleIndex="2">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
               </dx:GridViewDataTextColumn>
               <dx:GridViewDataTextColumn FieldName="numero" VisibleIndex="3">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
               </dx:GridViewDataTextColumn>
               <dx:GridViewDataTextColumn FieldName="monto" VisibleIndex="4">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
               </dx:GridViewDataTextColumn>
           </Columns>

<SettingsLoadingPanel Text="Cargando&amp;hellip;"></SettingsLoadingPanel>
       </dx:ASPxGridView>
       </td>
    </tr>
    
    </table>
    </fieldset>

        <br />
        <br />
        <br />
        <br />
        <br />
        <dx:aspxpopupcontrol id="popupOK" runat="server" width="300px" allowdragging="True"
            clientinstancename="popupOK" closeaction="CloseButton" enablehottrack="False"
            headertext="Mensaje" popuphorizontalalign="WindowCenter" popupverticalalign="WindowCenter"
            showpagescrollbarwhenmodal="True">
            <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
<table align="center">
<tr>
<td></td>
<td>
    <dx:ASPxLabel ID="lblmsgOK" runat="server">
    </dx:ASPxLabel>
    </td>
<td></td>
</tr>
    <tr>
        <td colspan="3">
            &nbsp;</td>
    </tr>
    <tr>
        <td colspan="3">
            <dx:ASPxButton ID="btnAceptarOK" runat="server" Text="Aceptar" 
                AutoPostBack="False">
                <clientsideevents click="function(s, e) {
	popupOK.Hide();
}" />
            </dx:ASPxButton>
        </td>
    </tr>
</table>
</dx:PopupControlContentControl>
</ContentCollection>
        </dx:aspxpopupcontrol>
        <dx:aspxpopupcontrol id="popupConfirmacion" runat="server" width="300px" allowdragging="True"
            clientinstancename="popupConfirmacion" closeaction="CloseButton" enablehottrack="False"
            headertext="Confirmar" popuphorizontalalign="WindowCenter" popupverticalalign="WindowCenter"
            showpagescrollbarwhenmodal="True">
            <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
<table align="center" width="100%">
<tr>
<td align="center" colspan="2">
    <dx:ASPxLabel ID="lblmsgConfirmar" runat="server">
    </dx:ASPxLabel>
    </td>
</tr>
    <tr>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <dx:ASPxButton ID="btnConfirmar" runat="server" Text="Aceptar" 
              >
                <clientsideevents click="function(s, e) {
	popupConfirmacion.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
	popupConfirmacion.Hide();
}"></ClientSideEvents>
            </dx:ASPxButton>
        </td>
          <td>
            <dx:ASPxButton ID="btnCancelar" runat="server" Text="Cancelar">
                <clientsideevents click="function(s, e) {
		popupConfirmacion.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
		popupConfirmacion.Hide();
}"></ClientSideEvents>
            </dx:ASPxButton>
        </td>
    </tr>
</table>
</dx:PopupControlContentControl>
</ContentCollection>
        </dx:aspxpopupcontrol>
        <dx:aspxpopupcontrol id="popupConfirmarCateg" runat="server" width="300px" allowdragging="True"
            clientinstancename="popupConfirmarCateg" closeaction="CloseButton" enablehottrack="False"
            headertext="Confirmar" popuphorizontalalign="WindowCenter" popupverticalalign="WindowCenter"
            showpagescrollbarwhenmodal="True">
            <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
<table align="center" width="100%">
<tr>
<td align="center" colspan="2">
    <dx:ASPxLabel ID="lblmsgConfCateg" runat="server">
    </dx:ASPxLabel>
    </td>
</tr>
    <tr>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <dx:ASPxButton ID="btnConfirmarCat" runat="server" Text="Aceptar">
                <clientsideevents click="function(s, e) {
	popupConfirmacion.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
popupConfirmarCateg.Hide();
}"></ClientSideEvents>
            </dx:ASPxButton>
        </td>
          <td>
            <dx:ASPxButton ID="btnCancelar0" runat="server" Text="Cancelar">
                <clientsideevents click="function(s, e) {
		popupConfirmacion.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
	popupConfirmarCateg.Hide();
}"></ClientSideEvents>
            </dx:ASPxButton>
        </td>
    </tr>
</table>
</dx:PopupControlContentControl>
</ContentCollection>
        </dx:aspxpopupcontrol>
        <dx:aspxpopupcontrol id="popupConfirmarHabit" runat="server" width="300px" allowdragging="True"
            clientinstancename="popupConfirmarHabit" closeaction="CloseButton" enablehottrack="False"
            headertext="Confirmar" popuphorizontalalign="WindowCenter" popupverticalalign="WindowCenter"
            showpagescrollbarwhenmodal="True">
            <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
<table align="center" width="100%">
<tr>
<td align="center" colspan="2">
    <dx:ASPxLabel ID="lblmsgConfirmarHabit" runat="server">
    </dx:ASPxLabel>
    </td>
</tr>
    <tr>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <dx:ASPxButton ID="btnConfirmarHabit" runat="server" Text="Aceptar">
                <clientsideevents click="function(s, e) {
	popupConfirmacion.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
popupConfirmarHabit.Hide();
}"></ClientSideEvents>
            </dx:ASPxButton>
        </td>
          <td>
            <dx:ASPxButton ID="btnCancelar1" runat="server" Text="Cancelar">
                <clientsideevents click="function(s, e) {
		popupConfirmacion.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
		popupConfirmacion.Hide();
}"></ClientSideEvents>
            </dx:ASPxButton>
        </td>
    </tr>
</table>
</dx:PopupControlContentControl>
</ContentCollection>
        </dx:aspxpopupcontrol>

    </div>
</asp:Content>
